all: C testC
C: C.c list.h
	gcc -fPIC -c C.c -o C.o
	gcc -shared -o C.so C.o -ldl
testC:	testC.c
	gcc -g -O0 testC.c -o testC
clean:
	rm -fr C.o C.so testC
run:
	LD_PRELOAD="./C.so" ./testC
